package com.ywl.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ywl.common.utils.PageUtils;
import com.ywl.gulimall.product.entity.AttrAttrgroupRelationEntity;
import com.ywl.gulimall.product.entity.AttrEntity;
import com.ywl.gulimall.product.entity.AttrGroupEntity;
import com.ywl.gulimall.product.vo.AttrGroupWithAttrsVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author ywl
 * @email xxx@gmail.com
 * @date 2022-02-05 21:09:57
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    List<AttrEntity> getAttrRelation(Long attrGroupId);

    void deleteAttrRelation(List<AttrAttrgroupRelationEntity> relationEntities);

    PageUtils getAttrNoRelation(Map<String, Object> params, Long attrGroupId);

    void saveAttrRelation(List<AttrAttrgroupRelationEntity> relationEntities);

    List<AttrGroupWithAttrsVo> listWithAttrs(Long catelogId);
}

